package com.peace.hospital.entity.drugstorage;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 退货单表
 * </p>
 *
 * @author xie
 * @since 2019-11-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Returnorder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 退货单id
     */
    @TableId(value = "retid", type = IdType.AUTO)
    private Integer retid;

    /**
     * 医院员工ID
     */
    private Integer staid;

    /**
     * 药品信息表ID
     */
    private Integer drugid;

    /**
     * 数量
     */
    private Integer retnum;

    /**
     * 价格单位表ID
     */
    private Integer pridrugprice;

    /**
     * 原因
     */
    private String retreason;

    /**
     * 日期
     */
    private LocalDate retdate;

    /**
     * 数据库名称
     */
    private String retdbsouce;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getRetid() {
        return retid;
    }

    public void setRetid(Integer retid) {
        this.retid = retid;
    }

    public Integer getStaid() {
        return staid;
    }

    public void setStaid(Integer staid) {
        this.staid = staid;
    }

    public Integer getDrugid() {
        return drugid;
    }

    public void setDrugid(Integer drugid) {
        this.drugid = drugid;
    }

    public Integer getRetnum() {
        return retnum;
    }

    public void setRetnum(Integer retnum) {
        this.retnum = retnum;
    }

    public Integer getPridrugprice() {
        return pridrugprice;
    }

    public void setPridrugprice(Integer pridrugprice) {
        this.pridrugprice = pridrugprice;
    }

    public String getRetreason() {
        return retreason;
    }

    public void setRetreason(String retreason) {
        this.retreason = retreason;
    }

    public LocalDate getRetdate() {
        return retdate;
    }

    public void setRetdate(LocalDate retdate) {
        this.retdate = retdate;
    }

    public String getRetdbsouce() {
        return retdbsouce;
    }

    public void setRetdbsouce(String retdbsouce) {
        this.retdbsouce = retdbsouce;
    }

    @Override
    public String toString() {
        return "Returnorder{" +
                "retid=" + retid +
                ", staid=" + staid +
                ", drugid=" + drugid +
                ", retnum=" + retnum +
                ", pridrugprice=" + pridrugprice +
                ", retreason='" + retreason + '\'' +
                ", retdate=" + retdate +
                ", retdbsouce='" + retdbsouce + '\'' +
                '}';
    }
}
